import { boot } from "quasar/wrappers";

export default boot(async ({ router, store }) => {
  const noNeedAuth = ["/login"];
  // router.beforeEach((to, from, next) => {
  //   if (
  //     store.state.persisted.auth.token ||
  //     noNeedAuth.indexOf(to.path) >= 0 ||
  //     to.meta.auth === false
  //   ) {
  //     return next();
  //   }
  //   launchAuthWindow();
  //   // next({ path: "/login", query: { _referer: from.fullPath } });
  // });
});
